﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using QDT.Core.Domain;

namespace QDT.Core.MSData.Mapping
{
    public class UserCarryMapping : EntityTypeConfiguration<UserCarry>
    {
        public UserCarryMapping()
        {
            HasKey(x => x.ID);
            Property(x => x.UserId).HasColumnName("User_Id");
            Property(x => x.BankId).HasColumnName("Bank_Id");
            Property(x => x.BankCard).HasColumnName("Bank_Card");
            Property(x => x.CreateTime).HasColumnName("Create_Time");
            Property(x => x.UpdateTime).HasColumnName("Update_Time");
            Property(x => x.RealName).HasColumnName("Real_Name");
            Property(x => x.BankZone).HasColumnName("Bank_Zone");
            Property(x => x.RegionLv1).HasColumnName("Region_Lv1");
            Property(x => x.RegionLv2).HasColumnName("Region_Lv2");
            Property(x => x.RegionLv3).HasColumnName("Region_Lv3");
            Property(x => x.RegionLv4).HasColumnName("Region_Lv4");

            ToTable(DB.TPref("user_carry"));
        }
    }
}
